import { FC } from "react";

interface IProps {
  name: string;
}

const SvgIcon: FC<IProps> = (props) => {
  const { name } = props;
  return (
    <svg>
      <use href={"#icon-" + name}></use>
    </svg>
  );
};

export default SvgIcon;
